#ifndef CICONSELECTIONMODEL_H
#define CICONSELECTIONMODEL_H

#include <QAbstractListModel>
#include <QModelIndex>
#include <QStringList>
#include <QVariant>

class CIconSelectionModel : public QAbstractListModel
{
    QStringList m_data;
public:
    CIconSelectionModel();
    int rowCount(const QModelIndex &parent = QModelIndex()) const;
    QVariant data(const QModelIndex &index, int role) const;

    QVariant headerData(int, Qt::Orientation, int /*role*/ = Qt::DisplayRole)
        { return QVariant(); }

    QString nameById(int id);

    int row(QString str) { return m_data.indexOf(str); }
};

#endif // CICONSELECTIONMODEL_H
